package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import com.atguigu.gulimall.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author fangXK
 * @email 1601274659@qq.com
 * @date 2020-07-19 13:53:04
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存商品的详细信息
     * @param spuInfo
     */
    void saveSpuInfo(SpuSaveVo spuInfo);

    /**
     * 保存spu的基本信息
     * @param spuInfoEntity
     */
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    /**
     * 根据条件返回Spu信息列表
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String, Object> params);
}

